#pragma once
#include"RBTree.h"

namespace Set
{
	template<class K>
	class set
	{
		struct SetKeyOfT
		{
			K operator()(const K& k)
			{
				return k;
			}
		};
	public:
		typedef typename RBTree<K, const K, SetKeyOfT>::iterator iterator;
		
		iterator begin()
		{
			return _rb.begin();
		}

		iterator end()
		{
			return _rb.end();
		}

		pair<iterator, bool> insert(const K& key)
		{
			return _rb.Insert(key);
		}

	private:
		RBTree<K, const K, SetKeyOfT> _rb;
	};
}